import service from "@/utils/request";
//登录
export function Login(data){
    return service({
        url:'api/user/login',
        method:'post',
        data:data
    })
}
//注册
export function Register(data){
    return service({
        url:'api/user/register',
        method:'post',
        data:data
    })
}

//获取用户信息
export function UserInfo(data){
        return service({
            url:'/api/user/id',
            method:'post',
            data:data
        })
    }
//真正的传参
// export function UserInfo(id){
//     return service({
//         url:'/api/user/'+id,
//         method:'post',
//         data:data
//     })
// }

//模糊查询实际的传参
export function SearchFilm(name){
    return service({
        url:'api/film/name',
        method:'get',
    })
}